FUNCTION
big_integer.from_bytes
function from_bytes(value: byte_array): big_integerCreate a big_integer from a byte array.
The byte array is interpreted with the first bit representing the sign (two's complement), and for subsequent bits, more significant bits are on the left and less significant bits are on the left (big-endian).
Inverse of big_integer.to_bytes().
Parameters
- value — the byte array to convert
Throws
exception— if the byte array is empty
Since
0.12.0
© 2026 Chromia